<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"      
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
	
    <h:body>	
    	<ui:composition template="/user/template.xhtml">
    		    <h1>Členové výkonného výboru</h1> 
                <table>
                  <tr>
                      <th>Jméno</th>
                      <th>Funkce</th>
                      <th>Telefon</th>
                      <th>E-mail</th>
                  </tr>
                  <c:forEach var="contact" items="#{contactBean.contactListVybor}" varStatus="status">
                   <c:if test="#{status.even}">
                    <tr>
                      <td class="jmeno2">
                      <a href="kontaktdetail.xhtml?id=#{contact.id}" style="color:black;">#{contact.surname} #{contact.firstname}</a>
					  </td>
                      <td>#{contact.place}</td>
                      <td>#{contact.phone}</td>
                      <td>#{contact.email}</td>
                    </tr>
                   </c:if> 
                   <c:if test="#{!status.even}">
                    <tr class="suda">
                      <td class="jmeno2">
                      <a href="kontaktdetail.xhtml?id=#{contact.id}" style="color:black;">#{contact.surname} #{contact.firstname}</a>
					  </td>
                      <td>#{contact.place}</td>
                      <td>#{contact.phone}</td>
                      <td>#{contact.email}</td>
                    </tr>
                   </c:if>
                  </c:forEach>
                </table>
    	</ui:composition>
	</h:body>
</html>